//
//  DLBaseTextField+ScrollText.h
//  DGGBaseSDK
//
//  Created by dgg_hzk on 2018/4/26.
//  Copyright © 2018年 dgg. All rights reserved.
//
#import <DGGUIKit/DLBaseTextField.h>
typedef enum ScrollDirection{
    TextFieldScrollToLeft = 0,  //向左
    TextFieldScrollToRight,     //向右
    TextFieldScrollAbout        //左右来回滚动
    
}TextFieldScrollDirection;

@interface DLBaseTextField (ScrollText)

/**
 * 是否启用输入框滚动模式
 */
@property (nonatomic, assign) BOOL enableScroll;

/**
 * 滚动方向（默认向左滚动）
 */
@property (nonatomic, assign) TextFieldScrollDirection textScrollDirection;

@property (nonatomic, assign) CGFloat scrollX;
@property (nonatomic, assign) CGFloat textWidth;
@property (nonatomic, assign) BOOL leftToRight;
@property (nonatomic, assign) BOOL isMoveing;

/**
 * 开启滚动
 */
- (void)startMoving;

/**
 * 停止滚动
 */
- (void)stopMoving;

@end
